#ifndef STACKWIDGET_H
#define STACKWIDGET_H

#include <QMouseEvent>
#include <QWidget>

#include"detection.h"
#include"history.h"
#include"setting.h"
#include"login.h"

class detection;
class history;
class setting;
class login;
namespace Ui {
class StackWidget;
}

class StackWidget : public QWidget
{
    Q_OBJECT

public:
    explicit StackWidget(QWidget *parent = nullptr);
    ~StackWidget();

private slots:
    void on_pushButton_detecting_clicked();

    void on_pushButton_history_clicked();

    void on_pushButton_setting_clicked();

    void on_pushButton_clicked();

private:
    Ui::StackWidget *ui;
    //界面指针
    detection*det;
    history*his;
    setting*sett;

    //判断数据库是否连接
    void testDatabaseConnection();


signals:
    void sendsignal();

};

#endif // STACKWIDGET_H
